﻿namespace LeadMaster.ViewModels
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using LeadMaster.Models;
    using LeadMaster.DAL;
    
    public class ViewModelSchedules
    {
        public ViewModelSchedules()
        {
            this.ScheduleTemplate = new ScheduleTemplate();
            this.ScheduleSections = db.ScheduleSection.ToList().Where(m => m.Category=="M").ToList() ;
            this.SectionMerges = db.SectionMerges.OrderBy(m => m.DisplayOrder).ToList();
        }

        private DunsmoreContext db = new DunsmoreContext();

        public List<ScheduleSection> ScheduleSections { get; set; }

        public ScheduleTemplate ScheduleTemplate { get; set; }

        public ScheduleSection ScheduleSection { get; set; }

        public List<ScheduleTemplateSection> ScheduleTemplateSections { get; set; }

        public int ScheduleTemplateID { get; set; }

        public int ScheduleSectionID { get; set; }

        public List<SectionMerges> SectionMerges { get; set; }

        public string holdingSectionMerge { get; set; }
    }
}